var util = require('../../utils/common.js'); //引入公共JS


Page({
  data: {
    showIcon: true,
    //显示返回键以及首页
    isFold: false,
    //折叠 
    toView: '',
    listFalg: true,
    //切换默认隐藏
    _list: '0',
    //切换
    tab_num: '0',
    //切换
    phoneNumber: "" //电话

  },
  onLoad: function (options) {},
  onPageScroll: function (e) {
    // 获取滚动条当前位置
    if (e.scrollTop > 100) {
      this.setData({
        floorstatus: true
      });
    } else {
      this.setData({
        floorstatus: false
      });
    }
  },
  //回到顶部
  goTop: function () {
    util.goTop();
  },
  flodFn1: function () {
    this.setData({
      isFold: false
    });
  },
  flodFn2: function () {
    this.setData({
      isFold: true
    });
  },
  menuClick: function (e) {
    var _id = e.target.dataset.id;
    this.setData({
      tab_num: _id,
      _list: _id
    });
  },
  phoneBtn: function () {
    //拨打电话
    tt.makePhoneCall({
      phoneNumber: '188-6035-1905'
    });
  }
});